/*
 * @Author: Automator
 * @Date: 2018-05-22 18:19:08
 * @description: 
*/

 const  api = {

     /*
     * 方法描述:删除当前产品服务数据,请求方式: DELETE,参数:该条记录id,返回值:JsonResult,是否可用:no
     * @param id  id  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'deleteCompanyProduct': {url: '/cms/v2/api/com/{id}/product', method: 'delete'},

     /*
     * 方法描述:模糊搜索业务,请求方式:GET,参数:name string 业务名,返回值:List<String>,是否可用:no
     * @param name  name  Required:[true]  Type:[string]  Location:[query]
     */
    'searchBusiness': {url: '/cms/v2/api/com/product/business', method: 'get'},

     /*
     * 方法描述:添加产品服务,请求方式:POST,参数:comProductDto,返回值:JsonResult,是否可用:no
     * @param comProductDto  comProductDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'saveCompanyProduct': {url: '/cms/v2/api/com/product', method: 'post'},

     /*
     * 方法描述:编辑产品服务,请求方式:PUT,参数:comProductDto,返回值:JsonResult,是否可用:no
     * @param comProductDto  comProductDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'updateCompanyProduct': {url: '/cms/v2/api/com/product', method: 'put'},

     /*
     * 方法描述:根据企业id和运营状态 获取当前企业所有产品服务,请求方式:GET,参数:ComPBJSearchDto,返回值:JsonResult<PageResult<ComProductVO>>,是否可用:no
     * @param pageParam.pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageParam.pageSize    Required:[false]  Type:[integer]  Location:[query]
     * @param companyId  工商 id  Required:[false]  Type:[integer]  Location:[query]
     * @param operate   运营标记  Required:[false]  Type:[integer]  Location:[query]
     */
    'getCompanyProductPage': {url: '/cms/v2/api/com/product/page', method: 'get'},

     /*
     * 方法描述:模糊搜索类型,请求方式:GET,参数:name string 业务名,返回值:List<String>,是否可用:no
     * @param name  name  Required:[true]  Type:[string]  Location:[query]
     */
    'searchType': {url: '/cms/v2/api/com/product/class', method: 'get'},

     /*
     * 方法描述:模糊搜索行业,请求方式:GET,参数:name string 行业名,返回值:List<String>,是否可用:no
     * @param name  name  Required:[true]  Type:[string]  Location:[query]
     */
    'searchIndustry': {url: '/cms/v2/api/com/product/industry', method: 'get'},

     /*
     * 方法描述:产品运营标记为运营,请求方式:POST,参数:companyId,返回值:JsonResult,是否可用:no
     * @param companyId  companyId  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'operativeProducts': {url: '/cms/v2/api/com/products/operative/{companyId}', method: 'post'},

};

 export default api;
